<aside class="bg-success dker aside-sm nav-vertical" id="nav">
    <section class="vbox">
        <header class="bg-black nav-bar">
            <a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen" data-target="#nav">
                <i class="fa fa-bars"></i>
            </a>
            <a id="ajaxProgressLogo" href="<?php echo $this->Html->url("/organisation"); ?>" class="nav-brand" > <!-- data-toggle="fullscreen" -->
                <?php echo $this->Html->image('core/memberz-logo.png', array('id' => 'loader_static')); ?>
                <?php echo $this->Html->image('loaders/loader_64x.gif', array('style' => 'display: none;', 'id' => 'loader_anim')); ?>
            </a>
            <a class="btn btn-link visible-xs" data-toggle="collapse" data-target=".navbar-collapse">
                <i class="fa fa-comment-o"></i>
            </a>
        </header>
        <section>
            <!-- nav -->
            <?php echo $this->element('main-nav'); ?>
            <!-- / nav -->
        </section>
        <footer class="footer bg-gradient hidden-xs">
            <a href="<?php echo $this->Html->url(array('controller' => 'organisation', 'action' => 'lock')); ?>" id="nav_lock_btn" data-toggle="ajaxModal" class="btn btn-sm btn-link m-r-n-xs pull-right">
                <i class="fa fa-power-off"></i>
            </a>
            <a href="#nav" data-toggle="class:nav-vertical" class="btn btn-sm btn-link m-l-n-sm">
                <i class="fa fa-bars"></i>
            </a>
        </footer>
    </section>
</aside>

<input type="hidden" id="setting_allowed_inactivity_duration" value="<?php echo $org_settings['inactivity_delay']; ?>" />
<input type="hidden" id="keep_alive_url" value="<?php echo $this->Html->url(array('controller' => 'settings', 'action' => 'keep_alive')); ?>" />